/**
 * 用户相关API
 */

const http = uni.$u.http;

const orderApi = {
	
	// 创建订单
	createOrder: data => http.post('/charging-order/create', data), 
	
	// 结束充电
	finishOrder: data => http.post('/charging-order/complete', data), 
	
	// 订单列表
	orderList: data => http.post('/charging-order/list', data), 
	
	// 订单详情
	orderDetail: params => http.get('/charging-order/detail/' + params.id), 
	
	// 获取订单评价
	orderComment: params => http.get('/station-comment/ind/detail/' + params.id), 
	
	// 查询开票信息
	orderInvoiceDetail: params => http.get('/invoice/order/detail/' + params.id), 
}

export default orderApi